//
//  SRSportHelper.h
//  SportRing
//
//  Created by mykoma on 14-6-14.
//  Copyright (c) 2014年 HotOne. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface SRHelper : NSObject

+(float)distanceMeterWithHeightMeter:(float)height steps:(float)steps;

+(float)caloriesWithHeightMeter:(float)height weight:(float)weight steps:(float)steps;

+ (NSInteger)getHoursFromTime:(NSInteger)time;

+ (NSInteger)getMinutesFromTime:(NSInteger)time;

+(void)showToast:(NSString *)toast
         subText:(NSString *)subText
           force:(BOOL)force
 completionBlock:(void (^)(void))completion;

+ (NSMutableAttributedString *)attString:(NSString *)str
                              fromString:(NSMutableArray *)fromStrings
                                toString:(NSMutableArray *)toStrings
                                fontSize:(NSMutableArray *)fonts
                                   color:(NSMutableArray *)colors;

+ (NSString *)timeFromDaySection:(int)section;

@end
